package where2go.sctu.com.zhiyou.entity;

import com.google.gson.Gson;

import org.json.JSONException;
import org.json.JSONObject;

import java.util.List;

/**
 * ProjectName: zhiyou
 * PackageName: where2go.sctu.com.zhiyou.entity
 * Created by 张某人
 * CreatedTime:on 2018/5/20   18:13
 * Description:
 */


public class ClassifyRight {

    /**
     * msg : 查询成功
     * data : [{"parentId":222,"typeId":227,"typeName":"小吃"},{"parentId":222,"typeId":228,"typeName":"主食"},{"parentId":222,"typeId":229,"typeName":"特产"}]
     * error : 0
     */

    private String msg;
    private int error;
    private List<DataBean> data;


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getError() {
        return error;
    }

    public void setError(int error) {
        this.error = error;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * parentId : 222
         * typeId : 227
         * typeName : 小吃
         */

        private int parentId;
        private int typeId;
        private String typeName;

        public int getParentId() {
            return parentId;
        }

        public void setParentId(int parentId) {
            this.parentId = parentId;
        }

        public int getTypeId() {
            return typeId;
        }

        public void setTypeId(int typeId) {
            this.typeId = typeId;
        }

        public String getTypeName() {
            return typeName;
        }

        public void setTypeName(String typeName) {
            this.typeName = typeName;
        }
    }
}
